<?php
class mod_news{
	var $db;
	
	function homenews(){
		$sql = array(
			'select' => 'id, title, pubtime',
			'from' => 'news',
			'where' => 'deleted = 0',
			'order by' => 'id desc',
			'limit' => '4'
		);
		return 'Home_News';
		//return $this->db->query_all($sql);
	}
	
	function __construct(){
		$this->db = &$GLOBALS['db'];	
	}
	
	function __destruct(){
		if($this->db)
			unset($this->db);	
	}	
}
?>
